home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / math / alged34.zip / ALGED.DOC < prev    next >
Text File  |  1996-06-06  |  13KB  |  280 lines

  1. Tutorial for Algebra Editor           John Henckel, henckel@vnet.ibm.com
  2.  
  3. Copyright (c) 1994,1996 John Henckel
  4. Permission to use, copy, modify, distribute and sell this software
  5. and its documentation for any purpose is hereby granted without fee,
  6. provided that the above copyright notice appear in all copies and
  7. that both that copyright notice and this permission notice appear
  8. in supporting documentation.  All programs contained herein are provided
  9. to you "as is".  The implied warranties of merchantability and fitness
  10. for a particular purpose are expressly disclaimed.
  11.  
  12. Getting Started
  13. ---------------
  14. By now I assume you have downloaded the alged33.zip and unzipped it.  You
  15. should have the following files...
  16.  
  17.     setup.bat      <--- run this to change language and video
  18.     alged.exe      <--- the program
  19.     alged.ae       <--- sample data file
  20.     alged.1st      <--- user options file
  21.     alged.doc      <--- tutorial (this file)
  22.     algedeng.hlp   <--- online help
  23.     algedeng.hlq   <--- online help (graphics mode)
  24.     algedeng.mnu   <--- menu, text and keyboard definitions
  25.     svga.ae        <--- Super VGA 256 color option file
  26.     ned.ae         <--- Flemish option file
  27.     fra.ae         <--- French option file
  28.     algedned.*     <--- Flemish language data
  29.     algedfra.*     <--- French language data
  30.     algedsrc.zip   <--- source code
  31.     file_id.diz    <--- short description
  32.     vgaprtsc.*     <--- TSR print screen utility for 16 color VGA graphics
  33.     *.bgi          <--- various graphics drivers (Borland)
  34.     jhenck*.gif    <--- some pictures of me
  35.  
  36. ===> If you prefer Flemish (Dutch) see the file algedned.doc. <===
  37.  
  38. The default language of the Alged program is English and
  39. the default graphics mode is "autodetect" up to 16 colors.
  40. To change the defaults, type
  41.  
  42.     setup
  43.  
  44. Before you run the Alged program, you might want to change the number of lines
  45. on the screen.  You can set this using the DOS command
  46.  
  47.     MODE co80,43
  48.  
  49. When you start Alged you may specify one or more data files or option files.
  50. The data file is just a text file you create with a text editor.  Start Alged
  51. with the sample data file...
  52.  
  53.     alged alged
  54.  
  55. You can use option files SVGA, NED, and FRA to change the language or graphics
  56. mode temporarily.  For example.
  57.  
  58.     alged alged svga
  59.  
  60. Now you should see a screen with a menu on the top and some formulas in the
  61. middle.  The first thing to learn is how to see the help text.  Press F1.
  62. The first part is a brief intro and how to use the mouse.  Then you see a
  63. description of each menu item.  Notice that each menu item has a hotkey.
  64.  
  65. Graphics
  66. --------
  67.  
  68. I know you all like graphics, so let's begin with some pretty pictures.
  69. The first formula you see is the following...
  70.  
  71.                                 2         2
  72.                         cos(x*2) *cos(y*2)  + r*0.2
  73.  
  74. What kind of function is this?  What does it look like?  A graph can help
  75. you quickly understand the properties of a function.  Click on Graph or
  76. press 'g' to graph this in two dimensions.  You see a cosine wave.  This is
  77. a cross-section of the function for values of x (because it is the first
  78. variable in the function).  To graph the other variables press 'V' (hold shift
  79. key).
  80.  
  81. The curve is rather jagged, so press [home] twice to add more points.  This
  82. draws the function slower but smoother.  Press [end] to remove points.
  83. You can press [ins] and [del] to zoom in or out.  You can press [pgup] and
  84. [pgdn] to stretch the function.  You can pan with the arrows.  You can press
  85. 'd' to return to the default view.
  86.  
  87. 3D graphics
  88. -----------
  89.  
  90. Now let's look at a 3-dimensional graph.  Press 'g' again.  You may need to
  91. press [home] or [end] to get a good picture.  Press [ins] one time to get
  92. closer.  You can see that this is a function like many mountains in straight
  93. rows.  Initially, the x-axis is pointing towards you, z points to the right
  94. and y points up.  If you have a color display, press 'c'.  Press 'f' to fill
  95. the graph.  Press 'f' again for a partially filled graph.  Press 'c' again to
  96. color the graph according the slope of the function, (see the ?r user option
  97. for the slope direction vector).
  98.  
  99. If you are using SVGA mode with 256 colors here are some treats for you.
  100. You can press 'x' to use a 240 color rainbow or 240 gray scale.  You can use
  101. the '-' and '=' key to cycle the palette.  Press them multiple times to cycle
  102. faster.  The 'z' key will scale the palette according to the range of the
  103. function so that all the colors are visible.  To view a shaded 3D graph, go to
  104. 3D mode and press 'dfxxcc' and press [home] to add points.
  105.  
  106. What would happen if you wrap this mountain function over a sphere?  Press
  107. 'a' to change to polar coordinates.  You may want to press [ins] to get
  108. closer.  The tick marks on the axes are units.  In polar mode, the x variable
  109. determines the latitude, and y determines the longitude.  The function value
  110. is the radius.  What about the other variable 'r'?  It is a free variable
  111. initially set to zero, (see upper left screen).  You can change the value
  112. of r by pressing 'w' and '2'.  What happens when r is 3? when r is -13?
  113.  
  114. Press F1 while in graphics mode to see more help about graphics keys (or look
  115. at the source code in algraph.c).
  116.  
  117. Parametric graphs
  118. -----------------
  119.  
  120. Press Esc to return to the main menu.  Now let's see a graph of a parametric
  121. function.  The next formula in the file is
  122.  
  123.                  cos(2*t) + sin(3*t + 0.2*u)
  124.  
  125. This formula describes the sound wave of a perfect fifth in music.  Press down
  126. arrow or click on the first '+' to select the formula, and press 'g' to graph
  127. it.  You can press 'w' and '2' to see the various phases.
  128.  
  129. What would happen if we plot the two components of this wave against each other
  130. on the x and y axes?  Press Esc to return to the main menu.  Click on the sin
  131. function with the left mouse button and click the cos function with the right
  132. mouse button.  (If you don't have a mouse, then press end, period, pgup, pgdn).
  133. The cos function is copied to the "key" at the bottom of the screen.  The key
  134. is used as the x axis function.  Press 'g' to view the graph, you should see
  135. the shape of a fish.  (If you don't see the fish press 'd' or 'a').  Now
  136. change the phase of the sine and see the effect.
  137.  
  138. Parametric graphs can also be useful in 3D.  The equation in the key is used
  139. to warp or even overlap the x coordinates.  You might try to put x + sin(y)
  140. in the key and then select and view the "mountains" function again.
  141.  
  142. Entering Formulas
  143. -----------------
  144.  
  145. Press Esc to return to the Alged main menu.  To enter your own formula into
  146. Alged, click on EnterKey or press 'k'.  Type a formula at the prompt, for
  147. example type...
  148.  
  149.     x + sin(y)
  150.  
  151. then press F6 (or ctrl-Z) and press Enter.  The formula appears at the bottom
  152. of the screen in the "key".  To move the key to the work space, click InsKey
  153. or press 'Ins', and press Enter.
  154.  
  155. When you are entering formulas, you can use the following keys
  156.         arrows = redo and undo a character
  157.         Insert = toggle insert mode
  158.         Delete = delete one character
  159.  
  160. The Alged formulas are stored in plain text files, so you can use any text
  161. editor to change or add formulas.
  162.  
  163. Solving Equations
  164. -----------------
  165.  
  166. Let's start with the next sample formula.
  167.  
  168.                      x*(5 + 2*x) - 2
  169.                     ----------------- - 2*x + 1 = 13
  170.                           3 + x
  171.  
  172. (It looks prettier than this if you use 8-bit ascii.)  To solve this
  173. problem, you need to find a common denominator for the left hand side.
  174. You can either click on the "Comm Deno" menu item or press the hotkey 'm'.
  175. The result is...
  176.  
  177.              x*(5 + 2*x) - 2 - 2*x*(3 + x) + 1*(3 + x)
  178.             ------------------------------------------- = 13
  179.                                3 + x
  180.  
  181. To complete the problem do the following
  182.  1. click on Distribute or press 'd'
  183.  2. click on Simplify or press space
  184.  3. click on EquLeft or press '[' to move the 1 across the equal
  185.  4. click on EquRight or press ']' to move the 3 across the equal
  186.  5. click on Simpli